package p2shapesv1;

public class UseShapes {

	public static void main(String[] args) {
		Shape s = new Shape();
		// legal or not? s.area = -18;
		System.out.println(" Shape s has: " + s);
		Circle c = new Circle();
		// legal or not? c.radius = -2;
		System.out.println(" Circle c has: " + c);

		Rectangle r = new Rectangle( 10, 20 );
		// legal or not? r.length = 3;
		// legal or not? r.width  = 5;
		System.out.println(" Rectangle r has: " + r);
		Square sq = new Square( 100 );
		// legal or not? sq.length = 3;
		// legal or not? sq.width  = 5;
		System.out.println(" Square sq has: " + sq);
	}

}
